using System;
using System.Collections.Generic;
using System.Text;

namespace GLib.Dao.Sql
{
    public class SqlJoin
    {
        private string sTable;
        private string sFieldkey;
        private string sForeignkey;
        private bool bRequired;
        private string[] sResults;


        public SqlJoin(string table, string fieldKey, string foreignkey, bool required, string[] resultsField)
        {
            this.sTable = table;
            this.sFieldkey = fieldKey;
            this.sForeignkey = foreignkey;
            this.bRequired = required;
            this.sResults = resultsField;
        }

        public string Table
        {
            get { return sTable; }
            set { sTable = value; }
        }

        public string Fieldkey
        {
            get { return sFieldkey; }
            set { sFieldkey = value; }
        }

        public string Foreignkey
        {
            get { return sForeignkey; }
            set { sForeignkey = value; }
        }

        public bool Required
        {
            get { return bRequired; }
            set { bRequired = value; }
        }

        public string[] ResultsField
        {
            get { return sResults; }
            set { sResults = value; }
        }
    }

}
